<form method="post" enctype="multipart/form-data" target="_blank" id="form-order">
  <div class="table-responsive">
    <table class="table table-bordered table-hover">

      <thead>
      <tr>
        <td class="text-center" width="65px;">序号</td>
        <td class="text-center">课程名称</td>
        <td class="text-center">预约用户</td>
        <td class="text-center">预约时间</td>
        <td class="text-center">时间段</td>
        <td class="text-center">状态</td>
        <td class="text-center">操作</td>
      </tr>
      </thead>

      <tbody>
      <volist name="list" id="list">
        <tr>

          <td class="text-center">{$list.userMakeCourseId}</td>
          <td class="text-center">{$list.courseTitle}</td>
          <td class="text-center">{$list.nickName}</td>
          <td class="text-center">{$list.reservationTime}</td>
          <td class="text-center">{$list.timeSlot}</td>
          <td class="text-center">{$list.makeCourseStatusName}</td>
          <td class="text-center">
            <if condition="$list.makeCourseStatus == 1 || $list.makeCourseStatus == 4 || $list.makeCourseStatus == 2">
              <a href="javascript:;" style="margin:0" onclick="layerAlert('更改状态', '{:U('coach/change_status', array('userMakeCourseId' => $list.userMakeCourseId))}', '70%', '85%')" class="btn btn-primary" title="更改状态">状态变更</a>
            </if>
<!--            <a href="javascript:;" onclick="delfunc(this)" data-url="{:url('coach/delCourse')}" data-id="{$list.userMakeCourseId}"  class="btn btn-danger" title="删除"><i class="fa fa-trash-o"></i></a>-->
          </td>
        </tr>
      </volist>

      </tbody>
    </table>
  </div>
</form>
<div class="row">
  <div class="col-sm-3 text-left"></div>
  <div class="col-sm-9 text-right">{$page}</div>
</div>
<script>
  // 点击分页触发的事件
  $(".pagination a").click(function(){
    cur_page = $(this).data('p');
    ajax_get_table('search-form', cur_page);
  });

</script>